﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2011A.Domain
{
    /// <summary>
    /// SKU表
    /// </summary>
    [Table("tb_product_sku")]
    public class ProductSkuModel:AuditField<Guid>
    {
        public Guid? SpuId { get; set; }
        public string? Code { get; set; }
        public string? Name { get;set; }
        public string? Spec { get; set; }  //存json格式   {"颜色":"红色","内存":"128G"}

        [Display(Name = "进价")]
        public decimal? InPrice { get; set; } = 0;
        [Display(Name = "销售价")]
        public decimal? SalePrice { get; set; } = 0;

        [Display(Name = "市场价")]
        public decimal? MarketPrice { get; set; } = 0;

        [Display(Name = "累计库存")]

        public int? InitStock { get; set; } = 0;

        [Display(Name = "有效库存,可用库存")]
        public int? IvildStock { get; set; } = 0;

        [Display(Name = "锁定库存")]
        public int? LockStock { get; set; } = 0;

    }
}
